import http from '@/utils/request'

//获取验证码
export async function getCodeImageApi(){
  return await http.getImage("/captcha/code");
}

//获取四则运算验证码
export async function getMathCodeImageApi(){
  return await http.getImage("/captcha/mathCode");
}

//验证四则运算验证码
export async function checkMathCodeApi(parm){
  return await http.get("/captcha/checkMathCode",parm);
}

//发送邮箱验证码
export async function sendEmailCodeApi(parm){
  return await http.get("/captcha/emailCode",parm)
}

//验证邮箱运算验证码
export async function checkEmailCodeApi(parm){
  return await http.get("/captcha/checkEmailCode",parm);
}
